package com.xiaoxx.model.dto.coin;

import com.xiaoxx.coin.enums.OrderTypesEnum;
import com.xiaoxx.coin.enums.PositionSideEnum;
import com.xiaoxx.coin.enums.SideEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
public class CommonOrderDto {
    @ApiModelProperty("交易对")
    private String symbol;

    @ApiModelProperty("买卖方向")
    private SideEnum side;

    @ApiModelProperty("下单数量")
    private BigDecimal quantity;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("开单方向")
    private PositionSideEnum positionSide;

    @ApiModelProperty("订单类型")
    private OrderTypesEnum type;

    @ApiModelProperty("触发价格价格")
    private BigDecimal stopPrice;

    @ApiModelProperty("系统用户id")
    private String userId;
}
